package com.itheima.object;

public class Student {
//    成员变量（对象属性）
    String name;
    double chinese;
    double math;
    public  void printTotalScore() {
        System.out.println(name + "成绩" + (chinese+math));
    }

    public void  printAverageScore() {
        System.out.println(name+ "平均成绩是：" + (chinese+math)/2.0);
    }
}
